﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Maticsoft.Web.wap
{
    public partial class NewsDetail : System.Web.UI.Page
    {
        int id = 0;
        protected void Page_Load(object sender, EventArgs e)
        {
            int.TryParse(Request.QueryString["id"], out id);

            GetData();
        }

        protected void GetData()
        {
            BLL.News newsBLL = new BLL.News();
            Model.News newsModel = newsBLL.GetModel(id);
            h1Title.InnerText = newsModel.Title;
            divMsg.InnerHtml = newsModel.Detail;
        }
    }
}